package com.sskj.one;

import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.bean.AgreeBean;
import com.sskj.one.presenter.BasePresenter;
import com.sskj.one.WebActivity;


/**
 * @author Hey
 * Create at  2019/05/24
 */
class WebPresenter extends BasePresenter<WebActivity> {

    public void getAgree(String type) {
        httpService.getAgree(type)
                .tag(this)
                .execute(new JsonCallBack<HttpData<AgreeBean>>(this) {
                    @Override
                    public void onHTTPSuccess(HttpData<AgreeBean> data) {
                        mView.getAgreeOK(data.getData());
                    }
                });
    }
}
